import java.util.Scanner;

public class Homeworkthree {
    public static void main(String[] args) {
        int sum = 0;
        Scanner s = new Scanner(System.in);
        int arr[] = new int [10];
        for(int i=0; i<arr.length; i++) {
            arr[i] = s.nextInt();
            if (arr[i] % 2 == 0) {
                System.out.println(arr[i]);
                sum += arr[i];
              if (sum > 5) {
                  System.out.println(sum);
              }
            }
        }
    }

}
